import request from "@/utils/request";
export function GetBooks(data) {
    return request({
        url: 'books/',
        method: 'GET',
        data
    })
}
// 获取图书信息
export function PostBooks(data) {
    return request({
        url: 'books/',
        method: 'POST',
        data
    })
}
// 删除图书
export function DeleteBooks(data) {
    return request({
        url: 'books/',
        method: 'DELETE',
        data
    })
}
// 借出

export function PostBooksHandle(data) {
    return request({
        url: 'books/handle/',
        method: 'POST',
        data
    })
}
// 归还

export function PostBooksReturn(data) {
    return request({
        url: 'books/return/',
        method: 'POST',
        data
    })
}
